<script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
		
		
<script>
		 
		
		  wx.config({
		    debug: false, 
		   appId: '{$jsdk.appId}',
				timestamp: {$jsdk.timestamp},
				nonceStr: '{$jsdk.nonceStr}',
				signature: '{$jsdk.signature}',
		    jsApiList: [
		      // 所有要调用的 API 都要加到这个列表中
		      'onMenuShareTimeline',
		      'onMenuShareAppMessage',
		    
		    ]
		  });
		
		  wx.ready(function () {
		  	
    wx.onMenuShareTimeline({
    
    title: '11年G4一起走过',
      link:'http://g4.shfyuan.com/ws/index.php?g=mobile&m=picture&a=index',
     imgUrl: 'http://g4.shfyuan.com/ws/Mobile/Webroot/gf/images/picture/g4logo.png',
      trigger: function (res) {
       
      },
      success: function (res) {
       			
				
      },
      cancel: function (res) {
       
      },
      fail: function (res) {
        alert(JSON.stringify(res));
      }
    });
    
	wx.onMenuShareAppMessage({
    link:'http://g4.shfyuan.com/ws/index.php?g=mobile&m=picture&a=index',
     title: '11年G4一起走过',
    desc: '11周年G4玩出彩',
 imgUrl: 'http://g4.shfyuan.com/ws/Mobile/Webroot/gf/images/picture/g4logo.png',
    success: function () { 
	
				
				
    },
    cancel: function () { 
        // 用户取消分享后执行的回调函数
    }
});

  });
		
			
		</script>